package com.flykoc.lightinggem.listener;

import org.bukkit.entity.Entity;
import org.bukkit.entity.Monster;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDeathEvent;

/**
 * 实体死亡监听
 *
 * @author Zoyn
 * @since 2017-10-21
 */
public class EntityDeathListener implements Listener {

    @EventHandler
    public void onDeath(EntityDeathEvent e) {
        Entity entity = e.getEntity();
        if (entity instanceof Monster) {
            // waiting...
        }
    }
}

